#ifndef WALLPAPERSERVICE_H
#define WALLPAPERSERVICE_H

#include <QString>
#include <QObject>
#include "HttpClient.h"
#include "WallpaperModel.h"
#include "JsonHelper.h"
#include "ConfigHelper.h"

class WallpaperService : public QObject
{
    Q_OBJECT
public:
    WallpaperService();

    void GetBingWallpapersAsync(int index,int count);

    QList<WallpaperModel *> GetBingWallpapers(int index, int count);

private:
    QString url;
    HttpClient *httpClient;

signals:
    void GetBingWallpapersFinish(QList<WallpaperModel*> papers);
private slots:
    void OnGetBingWallpapersFinish(QString);
};

#endif // WALLPAPERSERVICE_H
